package main
import "fmt"
func sortIntAsc(slice []string)[]string{
	for i:=0;i<len(slice);i++{
		for j:=i+1;j<len(slice);j++{
			if slice[i]>slice[j]{
				temp:=slice[i]
				slice[i]=slice[j]
				slice[j]=temp
			}
		}
	}
	return slice
}
func sortIntDesc(slice []int)[]int{
	for i:=0;i<len(slice);i++{
		for j:=i+1;j<len(slice);j++{
			if slice[i]<slice[j]{
				temp:=slice[i]
				slice[i]=slice[j]
				slice[j]=temp
			}
		}
	}
	return slice
}

func main(){
	// arr:=[]int{12,89,48,68,49,20}
	// hti:=[]int{48,49,79,29,10,-2,-5,39,29}
	bye:=[]string{"xian","tianjin","fuzhou","hangzhou","shaoxing","wuxi","dujiangyan"}
	// result:=sortIntAsc(arr)
	// result3:=sortIntAsc(hti)
	result5:=sortIntAsc(bye)
	fmt.Println(result5)
	// result2:=sortIntDesc(arr)
	// result4:=sortIntDesc(hti)
	// fmt.Println(result2,result4)
}